<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>经视帮帮网 - 后台管理中心</title>
<link href="__Public__/Admin/css/reset.css" rel="stylesheet" type="text/css" />
<link href="__Public__/Admin/css/zh-cn-system.css" rel="stylesheet" type="text/css" />
<link href="__Public__/Admin/css/table_form.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="__Public__/Admin/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript" src="__Public__/Admin/js/admin_common.js"></script>
<script>
function show(tag,id){
	 var light=document.getElementById(tag);
	 var fade=document.getElementById('fade');
	 light.style.display='block';
	 fade.style.display='block';
	// $('#namea').html(name);
	 $.ajax({
			   type: "POST",
			   url: "/index.php/Admin/Expand/Authorityck/",
			   data: "id="+id ,
			   //dataType: 'json',
			   success: function(msg){
					var dataObj=eval("("+msg+")");
					if(dataObj.qxcw=='0'){
						$('#fdc').html('<p align="center"><b>警告:'+dataObj.qxcws+'</b></p><br>');
					}else{
				 	  $('#fdc').html('<p align="center"><b>'+dataObj.name+'</b></p><table width="100%" cellspacing="0" ><tr><td width="100px">&nbsp;&nbsp;权限名称：</td><td>'+dataObj.name+'</td></tr><tr><td width="100px">&nbsp;&nbsp;标示：</td><td>'+dataObj.code+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;权限分类：</td><td>'+dataObj.parent+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;添加时间：</td><td>'+dataObj.input_time+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;添加IP：</td><td>'+dataObj.input_ip+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;描述：</td><td>'+dataObj.memo+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;顺序：</td><td>'+dataObj.sort+'&nbsp;&nbsp;</td></tr><tr><td width="100px">&nbsp;&nbsp;是否生效：</td><td>'+dataObj.is_show+'&nbsp;&nbsp;</td></tr><br></table>');
			   		}
			   }
	});
 }
function hide(tag){
	 var light=document.getElementById(tag);
	 var fade=document.getElementById('fade');
	 light.style.display='none';
	 fade.style.display='none';
}

function buttons()
{
	var namea = $('#namea').html();	
	var passwd = $('#passwd').val();
	if(namea && passwd)
		{
			$.ajax({
				   type: "POST",
				   url: "/index.php/Admin/HomesMembers/passwd/namea/"+namea,
				   data: "passwd="+passwd ,
				   success: function(msg){
						if(msg>0){
							hide('light');
							alert(namea+'的密码修改成功！');
						}else{
							alert(namea+'的密码修改失败！');
						}
				   }
				});
		}
}
</script>
<style>
html, body {
 height: 100%;
 width: 100%;
}
.white_content {
 display: none;
 position: absolute;
 top: 25%;
 left: 25%;
 width: 50%;

 border: 12px solid #D6E9F1;
 z-index:1002;
}
.black_overlay {
 display: none;
 position: absolute;
 top: 0%;
 left: 0%;
 width: 100%;
 height: 100%;
 background-color:#f5f5f5;
 z-index:1001;
 -moz-opacity: 0.8;
 opacity:.80;
 filter: alpha(opacity=80);
}
.close {
 float:right;
 clear:both;
 width:100%;
 text-align:right;
 margin:0 0 6px 0
}
.close a {
 color:#333;
 text-decoration:none;
 font-size:14px;
 font-weight:700
}
.con {
 text-indent:1.5pc;
 line-height:21px
}
</style>
</head>
<body>
<div id="light" class="white_content">
      <div class="close"><a href="javascript:void(0)" onclick="hide('light')"> 关闭</a></div>
      <div class="con" id="fdc"> 
      </div>
</div>
<div id="fade" class="black_overlay"></div>
<div class="subnav">
    <div class="content-menu ib-a blue line-x" >
        <a href='javascript:;' class="on"><em>管理栏目</em></a><span>|</span><a href='/index.php/Admin/Expand/Authorityadd' ><em>添加栏目</em></a><span>|</span><a href='/index.php/Admin/Expand/Authority' ><em>重新统计栏目数据</em></a><span>|</span></div>
</div>
<style type="text/css"> 
	html{_overflow-y:scroll}
</style>
<form name="myform" action="?m=admin&c=category&a=listorder" method="post">
<div class="pad_10">
<div class="explain-col">
	温馨提示：排序数据范围是0到16777215，非特需要跳转地址为#
</div>
<div class="bk10"></div>
<div class="table-list"  style="padding-bottom:0px;padding-top: 0px;">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
            <th width="38">排序</th>
            <th width="30">catid</th>
            <th >栏目名称</th>
            <th align='left' width='150'>栏目类型</th>
            <th align='center' width="40">标示</th>
            <th align='center' width="120">添加时间</th>
             <th align='center' width="80">添加ip</th>
            <th align='center' width="80">跳转地址</th>
            <th align='center' width="40">状态</th>
			<th >管理操作</th>
            </tr>
        </thead>
    <tbody>
    
    
<volist name="power" id='vpra'>
   				 <tr>
					<td align='center'><input name='listorders[{$vpra.id}]' type='text' size='3' value='{$vpra.sort}' class='input-text-c'></td>
					<td align='center'>{$vpra.id}</td>
					<td ><font color="#FF0000">{$vpra.name}</font><img src="__Public__/Admin/images/icon/gear_disable.png" title="顶级栏目"></td>
					<td><font color="blue">顶级栏目</font></td>
					<td>{$vpra.code}</td>
					<td align='center'>{$vpra.input_time|date="Y-m-d",###}</td>
					<td align='center'>{$vpra.input_ip}</td>
					<td align='center'>{$vpra.url}</td>
					<td align='center'><if condition="$vpra.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
					<td align='center'><a href="/index.php/Admin/Expand/Authorityadd/parent/{$vpra.id}">添加子权限</a> | 
					<a href="javascript:void(0)" onclick="show('light','{$vpra.id}')">查看</a> | 
					<a href="/index.php/Admin/Expand/Authorityed/id/{$vpra.id}">修改</a> | 
					<a href="javascript:confirmurl('/index.php/Admin/Expand/Authoritydel/id/{$vpra.id}','确认要删除 『 {$vpra.name}』 吗？警告权限设置的删除将影响整个系统！删除时请注意删除子权限')">删除</a> | 
					</td>
				</tr>

	<volist name="vpra['parent']" id='vprb'>
	
				<tr>
					<td align='center'><input name='listorders[{$vprb.id}]' type='text' size='3' value='{$vprb.sort}' class='input-text-c'></td>
					<td align='center'> {$vprb.id}</td>
					<td>&nbsp;&nbsp;&nbsp;├─<font color="#FF99FF"> {$vprb.name}</font></td>
					<td><font color="blue">{$vprb.names}</font></td>
					<td>{$vprb.code}</td>
					<td align='center'>{$vprb.input_time|date="Y-m-d",###}</td>
					<td align='center'>{$vprb.input_ip}</td>
					<td align='center'>{$vprb.url}</td>
					<td align='center'><if condition="$vprb.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
					<td align='center'><a href="/index.php/Admin/Expand/Authorityadd/parent/{$vprb.id}">添加子权限</a> | 
					<a href="/index.php/Admin/Expand/Authorityed/id/{$vprb.id}">修改</a> | 
					<a href="javascript:confirmurl('/index.php/Admin/Expand/Authoritydel/id/{$vprb.id}','确认要删除 『 {$vprb.name}』 吗？警告权限设置的删除将影响整个系统！删除时请注意删除子权限')">删除</a> | </td>	
				</tr>
				
			<volist name="vprb['parent']" id='vprc'>
			<tr>
					<td align='center'><input name='listorders[{$vprc.id}]' type='text' size='3' value='{$vprc.sort}' class='input-text-c'></td>
					<td align='center'>{$vprc.id}</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;└─ <a href="javascript:void(0)" onclick="show('light','{$vprc.id}')">{$vprc.name}</a></td>
					<td><font color="blue">{$vprc.namess} - {$vprc.names}</font></td>
					<td>{$vprc.code}</td>
					<td align='center'>{$vprc.input_time|date="Y-m-d",###}</td>
					<td align='center'>{$vprc.input_ip}</td>
					<td align='center'>{$vprc.url}</td>
					<td align='center'><if condition="$vprc.is_show eq 1"><font color="red">√</font><else/><font color="blue">×</font></if></td>
					<td align='center'><a href="javascript:void(0)" onclick="show('light','{$vprc.id}')">查看</a> |
					<a href="/index.php/Admin/Expand/Authorityed/id/{$vprc.id}">修改</a> |
					<a href="javascript:confirmurl('/index.php/Admin/Expand/Authoritydel/id/{$vprc.id}','确认要删除 『 {$vpra.name}』 吗？警告权限设置的删除将影响整个系统！')">删除</a> | 
					</td>
			</tr>
		</volist>
	</volist>
</volist>

</tbody>
    </table>
 
    <div class="btn">
	<input type="hidden" name="pc_hash" value="rFG9ms" />
	<input type="submit" class="button" name="dosubmit" value="排序" /></div>  </div>
</div>
</div>
</form>
<script language="JavaScript"> 
<!--
	window.top.$('#display_center_id').css('display','none');
//-->
</script>
</body>
</html>

